<?php

class ImageSubmitButton extends FormElement {

	function __construct( $name, $properties = array() ) {
		parent::__construct( $name, $properties );
	}

	public function __toString( ) {
		return '<input type="image" src="' . $this->getProperty('src') . '" name="' . ( $this->getFormName() != '' ? $this->getFormName() . '_' : '' ) . $this->name . '" id="' . ( $this->getFormName() != '' ? $this->getFormName() . '_' : '' ) . $this->name . '"' . ( $this->getProperty( 'tabindex' ) ? ( ' tabindex="' . $this->getProperty( 'tabindex' ) . '"' ) : '' ) . ' />';
	}
}

?>